package com.zimmur.app.mocolink.domain.param;

public class TopInGroupGoodsReqParam {
	private Integer userId; //用户id
	private Integer pageSize=10; //每页展示的条数
	private Integer pageIndex;//页码
	private String orderByClause;//排序
	
	private Integer pageBeginNo;
	
	public Integer getPageBeginNo() {
		if(pageIndex!=null && pageIndex>0){
			return (pageIndex-1)*pageSize;
		}else{
			return 0;
		}
	}
	public void setPageBeginNo(Integer pageBeginNo) {
		this.pageBeginNo = pageBeginNo;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public Integer getPageIndex() {
		return pageIndex;
	}
	public void setPageIndex(Integer pageIndex) {
		this.pageIndex = pageIndex;
	}
	public String getOrderByClause() {
		return orderByClause;
	}
	public void setOrderByClause(String orderByClause) {
		this.orderByClause = orderByClause;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
}
